import React from 'react';
import { Route } from 'react-router-dom';
import Mac from '../mac';
import LossDetail from '../lossDetail';
import Confirmation from '../confirmation';
import Error from '../error';

const Router = () => (
    <main>
        <Route exact path="/" component={Mac} />
        <Route exact path="/lossDetail" component={LossDetail} />
        <Route exact path="/confirmation" component={Confirmation} />
        <Route exact path="/error" component={Error} />
    </main>
)

export default Router
